<?php
/*
	[Bidcms.com!] (C)2009-2011 Bidcms.com.
	This is NOT a freeware, use is subject to license terms
	$author limengqi
	$Id: index.class.php 2010-08-24 10:42 $
*/
if (!defined('IN_PROVERB')) {
    exit('Access Denied');
}

class article_controller
{
    function article_controller()
    {
        include ROOT_PATH . './models/common.php';
    }

    function index_action()
    {

        include template('index_all');
    }

    function item_action()
    {
        $id = trim($_GET['id']);
        $article = getTopicDetail($id);
        include template('article_item_m');
    }
    function news_action()
    {
        $id = trim($_GET['id']);
        $article = getNewsDetail($id);
        include template('article_item_m');
    }
    function xuexi_action()
    {
        $id = trim($_GET['id']);
        $article = getXuexiDetail($id);
        include template('article_item_m');
    }
    function shici_action()
    {
        $id = trim($_GET['id']);
        $article = getShiciDetail($id);
        include template('article_item_m');
    }
    function rudang_action()
    {
        $id = trim($_GET['id']);
        $article = getRudangDetail($id);
        include template('article_item_m');
    }
    function gonggao_action()
    {
        $id = trim($_GET['id']);
        $article = getGonggaoDetail($id);
        include template('article_item_m');
    }
    function fengcai_action()
    {
        $id = trim($_GET['id']);
        $article = getFengcaiDetail($id);
        include template('article_item_m');
    }

    function sanhuiyike_action()
    {
        $id = trim($_GET['id']);
        $article = getSanhuikyikeDetail($id);
        include template('article_item_m');
    }

    function jingcaihuodong_action()
    {
        $id = trim($_GET['id']);
        $article = getJingcaihuodongDetail($id);
        include template('article_item_m');
    }

    function jizhonghuodongri_action()
    {
        $id = trim($_GET['id']);
        $article = getJizhonghuodongriDetail($id);
        include template('article_item_m');
    }

    function qianshouxingdong_action()
    {
        $id = trim($_GET['id']);
        $article = getQianshouxingdongDetail($id);
        include template('article_item_m');
    }

    function gongzuodongtai_action()
    {
        $id = trim($_GET['id']);
        $article = getGongzuodongtaiDetail($id);
        include template('article_item_m');
    }

    function erxueyizuo_action()
    {
        $id = trim($_GET['id']);
        $article = getErxueyizuoDetail($id);
        include template('article_item_m');
    }

    function team_action()
    {
        include template('team_index');
    }

    function all_action()
    {
        $topics = getAllTopics();
        include template('article_all');
    }

}
